package actions.square2Curly;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import utils.ClipBoardUtil;

public class Square2CurlyFormatAction extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        Square2CurlyInputDialog.runWithCallBack(origin -> {
            origin = origin.replace('[', '{');
            origin = origin.replace(']', '}');
            ClipBoardUtil.setSysClipboardText(origin);
        });
    }
}
